import * as actionType from '@/store/actions/actionType'
const counterReducer=(state={count:10},action)=>{
    switch(action.type){
        case actionType.INCREMENT:
           return {count:state.count+action.payload}
        case actionType.DECREASE:
           return {count:state.count-action.payload}
        default:
            return state
    }
}
export default counterReducer